﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Pay.DTO.hniao {
    /// <summary>
    /// 请求基础类
    /// </summary>
    public class hn_req_base {
        /// <summary>
        /// userid
        /// </summary>
        public string clientId { get; set; }
        /// <summary>
        /// token
        /// </summary>
        public string clientToken { get; set; }
        /// <summary>
        /// 请求方法
        /// </summary>
        public string method { get; set; }
    }
    /// <summary>
    /// 响应基础类
    /// </summary>
    public class hn_res_base {
        /// <summary>
        /// 响应代码
        /// </summary>
        public string code { get; set; }
        /// <summary>
        /// 响应内容
        /// </summary>
        public string message { get; set; }
    }

    #region 创建订单请求
    /// <summary>
    /// 创建订单
    /// </summary>
    public class hn_create_order_req : hn_req_base {
        /// <summary>
        /// 
        /// </summary>
        public hn_create_order_req() {
            method = "order.create";
        }
        /// <summary>
        /// 订单数据
        /// </summary>
        public string orders { get; set; }
    }
    /// <summary>
    /// 订单对象
    /// </summary>
    public class hn_order {
        /// <summary>
        /// 
        /// </summary>
        public hn_order() {
            goods = new List<hn_goods>();
        }
        /// <summary>
        /// 客户订单号
        /// </summary>
        public string cusOrderNo { get; set; }
        /// <summary>
        /// 收货人
        /// </summary>
        public string userName { get; set; }
        /// <summary>
        /// 手机号
        /// </summary>
        public string userPhone { get; set; }
        /// <summary>
        /// 身份证号
        /// </summary>
        public string IDCard { get; set; }
        /// <summary>
        /// 省份
        /// </summary>
        public string province { get; set; }
        /// <summary>
        /// 城市
        /// </summary>
        public string city { get; set; }
        /// <summary>
        /// 区/县
        /// </summary>
        public string district { get; set; }
        /// <summary>
        /// 收货详细地址
        /// </summary>
        public string userAddress { get; set; }
        /// <summary>
        /// 支付方式
        /// </summary>
        public string payName { get; set; }
        /// <summary>
        /// 交易支付单号
        /// </summary>
        public string tradeNo { get; set; }
        /// <summary>
        /// 订单创建时间
        /// </summary>
        public string createTime { get; set; }
        /// <summary>
        /// 支付时间
        /// </summary>
        public string payTime { get; set; }
        /// <summary>
        /// 商品金额
        /// </summary>
        public decimal goodsMoney { get; set; }
        /// <summary>
        /// 运杂费
        /// </summary>
        public decimal deliverMoney { get; set; }
        /// <summary>
        /// 支付金额
        /// </summary>
        public decimal realTotalMoney { get; set; }
        /// <summary>
        /// 税费
        /// </summary>
        public decimal taxFee { get; set; }
        /// <summary>
        /// 订单准备
        /// </summary>
        public string orderRemarks { get; set; }
        /// <summary>
        /// 订单商品信息
        /// </summary>
        public List<hn_goods> goods { get; set; }
    }
    /// <summary>
    /// 商品信息
    /// </summary>
    public class hn_goods {
        /// <summary>
        /// 商品sku
        /// </summary>
        public string goodsSku { get; set; }
        /// <summary>
        /// 商品数量
        /// </summary>
        public string goodsNum { get; set; }
        /// <summary>
        /// 商品价格
        /// </summary>
        public decimal goodsPrice { get; set; }
        /// <summary>
        /// 商品规格数量
        /// </summary>
        public int goodsSpecNum { get; set; }
        /// <summary>
        /// 商品规格名称
        /// </summary>
        public string goodsSpecNames { get; set; }
        /// <summary>
        /// 商品保质期开始时间
        /// </summary>
        public string startExpDate { get; set; }
        /// <summary>
        /// 商品保质期结束时间
        /// </summary>
        public string endExpDate { get; set; }
    }
    #endregion

    #region 订单请求响应结果
    /// <summary>
    /// 创建订单响应报文
    /// </summary>
    public class hn_create_order_res : hn_res_base {
        /// <summary>
        /// 
        /// </summary>
        public hn_create_order_res() {
            successOrders = new List<hn_success_order>();
            errorOrders = new List<hn_error_order>();
        }
        /// <summary>
        /// 成功的来源单号
        /// </summary>
        public List<hn_success_order> successOrders { get; set; }
        /// <summary>
        /// 失败的来源单号
        /// </summary>
        public List<hn_error_order> errorOrders { get; set; }
    }
    /// <summary>
    /// 成功订单
    /// </summary>
    public class hn_success_order {
        /// <summary>
        /// 来源单号
        /// </summary>
        public string cusOrderNo { get; set; }
        /// <summary>
        /// 商城订单号
        /// </summary>
        public List<string> orderNos { get; set; }
    }
    /// <summary>
    /// 失败订单
    /// </summary>
    public class hn_error_order {
        /// <summary>
        /// 来源单号
        /// </summary>
        public string cusOrderNo { get; set; }
        /// <summary>
        /// 错误原因
        /// </summary>
        public string message { get; set; }
    }
    #endregion

    #region 获取订单物流信息
    /// <summary>
    /// 订单物流请求报文
    /// </summary>
    public class hn_express_req : hn_req_base {
        /// <summary>
        /// 
        /// </summary>
        public hn_express_req() {
            method = "order.getExpress";
        }
        /// <summary>
        /// 来源单号
        /// </summary>
        public string cusOrderNo { get; set; }
    }
    /// <summary>
    /// 物流信息
    /// </summary>
    public class hn_express_res : hn_res_base {
        /// <summary>
        /// 
        /// </summary>
        public hn_express_res() {
            expressInfo = new List<hn_expressInfo>();
        }
        /// <summary>
        /// 物流信息
        /// </summary>
        public List<hn_expressInfo> expressInfo { get; set; }
    }
    /// <summary>
    /// 物流信息
    /// </summary>
    public class hn_expressInfo {
        /// <summary>
        /// 物流商名称
        /// </summary>
        public string name { get; set; }
        /// <summary>
        /// 物流方式编码
        /// </summary>
        public string code { get; set; }
        /// <summary>
        /// 运单号
        /// </summary>
        public string expressNo { get; set; }
    }

    #endregion

    #region 查询订单状态
    /// <summary>
    /// 查询订单状态请求报文
    /// </summary>
    public class hn_query_order_status_req : hn_req_base {
        /// <summary>
        /// 
        /// </summary>
        public hn_query_order_status_req() {
            method = "order.queryOrderStatus";
        }
        /// <summary>
        /// 来源单号
        /// </summary>
        public string cusOrderNo { get; set; }
    }
    /// <summary>
    /// 查询订单状态响应报文
    /// </summary>
    public class hn_query_order_status_res : hn_res_base {
        /// <summary>
        /// 
        /// </summary>
        public hn_query_order_status_res() {
            orderInfo = new List<hn_orderInfo>();
        }
        /// <summary>
        /// 订单信息
        /// </summary>
        public List<hn_orderInfo> orderInfo { get; set; }
    }
    /// <summary>
    /// 订单信息
    /// </summary>
    public class hn_orderInfo {
        /// <summary>
        /// 来源单号
        /// </summary>
        public string cusOrderNo { get; set; }
        /// <summary>
        /// 商城订单号
        /// </summary>
        public string orderNo { get; set; }
        /// <summary>
        /// 订单状态 -3：异常订单、-2：待付款、-1：已取消、
        /// 0：待发货、1：已发货、2：已收货、3：海关审核中
        /// 4、待审核
        /// </summary>
        public int orderStatus { get; set; }
        /// <summary>
        /// 商品货号
        /// </summary>
        public string goodsSku { get; set; }
        /// <summary>
        /// 商品规格数量
        /// </summary>
        public int goodsSpecNum { get; set; }
        /// <summary>
        /// 运单号 注：订单状态不是1、2时，参数不返回
        /// </summary>
        public string expressNo { get; set; }
        /// <summary>
        /// 物流商名称 注：订单状态不是1、2时，参数不返回
        /// </summary>
        public string expressName { get; set; }
        /// <summary>
        /// 物流方式编码 注：订单状态不是1、2时，参数不返回
        /// </summary>
        public string expressCode { get; set; }
        /// <summary>
        /// 发货时间
        /// </summary>
        public DateTime deliveryTime { get; set; }
    }

    #endregion

    #region 商品库存
    /// <summary>
    /// 商品库存请求报文
    /// </summary>
    public class hn_goods_stock_req : hn_req_base {
        /// <summary>
        /// 
        /// </summary>
        public hn_goods_stock_req() {
            method = "goods.getStock";
        }
        /// <summary>
        /// 商品sku
        /// </summary>
        public string goodsSku { get; set; }
    }
    /// <summary>
    /// 商品库存响应报文
    /// </summary>
    public class hn_goods_stock_res : hn_res_base {
        /// <summary>
        /// 
        /// </summary>
        public hn_goods_stock_res() {
            data = new List<hn_goods_data>();
        }
        /// <summary>
        /// 
        /// </summary>
        public List<hn_goods_data> data { get; set; }
    }
    /// <summary>
    /// 
    /// </summary>
    public class hn_goods_data {
        /// <summary>
        /// 规格组名称
        /// </summary>
        public string specGroupName { get; set; }
        /// <summary>
        /// 保质期开始时间
        /// </summary>
        public string startExpDate { get; set; }
        /// <summary>
        /// 保质期结束时间
        /// </summary>
        public string endExpDate { get; set; }
        /// <summary>
        /// 库存数量
        /// </summary>
        public int stockNum { get; set; }
    }

    /// <summary>
    /// 批量获取商品库存请求报文
    /// </summary>
    public class hn_goods_stocks_req : hn_req_base {
        /// <summary>
        /// 
        /// </summary>
        public hn_goods_stocks_req() {
            method = "goods.getStocks";
        }
        /// <summary>
        /// 商品sku，查询多个sku用英文逗号隔开（每次最多查询50个sku）
        /// </summary>
        public string goodsSku { get; set; }
    }

    #endregion

    #region 获取商品价格
    /// <summary>
    /// 获取商品价格请求报文
    /// </summary>
    public class hn_goods_price_req : hn_req_base {
        /// <summary>
        /// 
        /// </summary>
        public hn_goods_price_req() {
            method = "goods.getPrice";
        }
        /// <summary>
        /// 商品sku
        /// </summary>
        public string goodsSku { get; set; }
    }
    /// <summary>
    /// 获取商品价格响应报文
    /// </summary>
    public class hn_goods_price_res : hn_res_base {
        /// <summary>
        /// 
        /// </summary>
        public hn_goods_price_res() {
            data = new List<hn_goods_price_data>();
        }
        /// <summary>
        /// 商品价格信息
        /// </summary>
        public List<hn_goods_price_data> data { get; set; }
    }
    /// <summary>
    /// 商品价格信息
    /// </summary>
    public class hn_goods_price_data {
        /// <summary>
        /// 规格名称
        /// </summary>
        public string specGroupName { get; set; }
        /// <summary>
        /// 商品库存
        /// </summary>
        public string stockNum { get; set; }
        /// <summary>
        /// 保质期开始时间
        /// </summary>
        public string startExpDate { get; set; }
        /// <summary>
        /// 保质期结束时间
        /// </summary>
        public string endExpDate { get; set; }
        /// <summary>
        /// 价格详情
        /// </summary>
        public List<hn_spec_detail> specDetail { get; set; }
    }
    /// <summary>
    /// 价格详情
    /// </summary>
    public class hn_spec_detail {
        /// <summary>
        /// 规格名称
        /// </summary>
        public string specName { get; set; }
        /// <summary>
        /// 规格价
        /// </summary>
        public string specPrice { get; set; }
        /// <summary>
        /// 规格数量
        /// </summary>
        public int specNum { get; set; }
    }
    /// <summary>
    /// 批量获取商品价格请求报文
    /// </summary>
    public class hn_batch_goods_price_req : hn_req_base {
        /// <summary>
        /// 
        /// </summary>
        public hn_batch_goods_price_req() {
            method = "goods.getPrices";
        }
        /// <summary>
        /// 商品sku
        /// </summary>
        public string goodsSku { get; set; }
    }

    #endregion

    #region 获取商品列表
    /// <summary>
    /// 获取商品列表请求报文
    /// </summary>
    public class hn_goods_list_req : hn_req_base {
        /// <summary>
        /// 
        /// </summary>
        public hn_goods_list_req() {
            method = "goods.goodsList";
            page = 1;
        }
        /// <summary>
        /// 页码
        /// </summary>
        public int page { get; set; }
    }
    /// <summary>
    /// 获取商品列表响应报文
    /// </summary>
    public class hn_goods_list_res : hn_res_base {
        /// <summary>
        /// 
        /// </summary>
        public hn_goods_list_res(){
            data = new hn_goods_list_data();
        }
        /// <summary>
        /// 商品价格信息
        /// </summary>
        public hn_goods_list_data data { get; set; }
    }
    /// <summary>
    /// 商品价格信息
    /// </summary>
    public class hn_goods_list_data {
        /// <summary>
        /// 
        /// </summary>
        public hn_goods_list_data() {
            goodsList = new List<hn_goods_list>();
        }
        /// <summary>
        /// 商品总条数
        /// </summary>
        public int total { get; set; }
        /// <summary>
        /// 商品数组
        /// </summary>
        public List<hn_goods_list> goodsList { get; set; }
    }
    /// <summary>
    /// 商品数组
    /// </summary>
    public class hn_goods_list {
        /// <summary>
        /// 
        /// </summary>
        public hn_goods_list() {
            category = new List<string>();
        }
        /// <summary>
        /// 商品sku
        /// </summary>
        public string sku { get; set; }
        /// <summary>
        /// 贸易类型
        /// </summary>
        public string tradeType { get; set; }
        /// <summary>
        /// 大图
        /// </summary>
        public string big { get; set; }
        /// <summary>
        /// 商品条码
        /// </summary>
        public string barcode { get; set; }
        /// <summary>
        /// 商品名称
        /// </summary>
        public string goodsName { get; set; }
        /// <summary>
        /// 商品小图
        /// </summary>
        public string tiny { get; set; }
        /// <summary>
        /// 商品缩略图
        /// </summary>
        public string thumbnail { get; set; }
        /// <summary>
        /// 产地
        /// </summary>
        public string original { get; set; }
        /// <summary>
        /// 商品原图
        /// </summary>
        public string origin { get; set; }
        /// <summary>
        /// 商品详情
        /// </summary>
        public string description { get; set; }
        /// <summary>
        /// 品牌
        /// </summary>
        public string brand { get; set; }
        /// <summary>
        /// 域名
        /// </summary>
        public string picLibUrl { get; set; }
        /// <summary>
        /// 分类数组
        /// </summary>
        public List<string> category { get; set; }
        /// <summary>
        /// 规格数组
        /// </summary>
        public object spec { get; set; }
    }
    /// <summary>
    /// 商品规格
    /// </summary>
    public class hn_goods_spec {
        /// <summary>
        /// 规格数量
        /// </summary>
        public int specNum { get; set; }
        /// <summary>
        /// 规格名称
        /// </summary>
        public string specDesc { get; set; }
        /// <summary>
        /// 规格重量
        /// </summary>
        public int weight { get; set; }
        /// <summary>
        /// 规格价格
        /// </summary>
        public decimal specPrice { get; set; }
        /// <summary>
        /// 开始时间
        /// </summary>
        public string startExpDate { get; set; }
        /// <summary>
        /// 结束时间
        /// </summary>
        public string endExpDate { get; set; }
        /// <summary>
        /// 库存
        /// </summary>
        public int stock { get; set; }
    }
    /// <summary>
    /// 商品新增、编辑、库存变更请求
    /// </summary>
    public class hn_goods_op_req : hn_req_base {
        /// <summary>
        /// 
        /// </summary>
        public hn_goods_op_req() {
            method = "goods.getGoodsDetailBySku";
        }
        /// <summary>
        /// 商品库存
        /// </summary>
        public string goodsSku { get; set; }
    }
    /// <summary>
    /// 商品新增、编辑、库存变更响应
    /// </summary>
    public class hn_goods_op_res : hn_res_base {
        /// <summary>
        /// 
        /// </summary>
        public hn_goods_detail_data data { get; set; }
    }
    public class hn_goods_detail_data {
        public hn_goods_detail goodsDetail { get; set; }
    }
    /// <summary>
    /// 商品详情
    /// </summary>
    public class hn_goods_detail {
        /// <summary>
        /// 商品sku
        /// </summary>
        public string sku { get; set; }
        /// <summary>
        /// 贸易类型
        /// </summary>
        public string tradeType { get; set; }
        /// <summary>
        /// 二维码
        /// </summary>
        public string barcode { get; set; }
        /// <summary>
        /// 商品名称
        /// </summary>
        public string goodsName { get; set; }
        /// <summary>
        /// 小图
        /// </summary>
        public string tiny { get; set; }
        /// <summary>
        /// 缩略图
        /// </summary>
        public string thumbnail { get; set; }
        /// <summary>
        /// 大图
        /// </summary>
        public string big { get; set; }
        /// <summary>
        /// 原始图片地址
        /// </summary>
        public string original { get; set; }
        /// <summary>
        /// 来源国家
        /// </summary>
        public string origin { get; set; }
        /// <summary>
        /// 描述
        /// </summary>
        public string description { get; set; }
        /// <summary>
        /// 品牌
        /// </summary>
        public string brand { get; set; }
        /// <summary>
        /// 域名
        /// </summary>
        public string picLibUrl { get; set; }
        /// <summary>
        /// 单位
        /// </summary>
        public string goodsUnit { get; set; }
        /// <summary>
        /// 分类
        /// </summary>
        public List<string> category { get; set; }
        /// <summary>
        /// 规格
        /// </summary>
        public object spec { get; set; }
    }
    #endregion

    #region 推送接口
    /// <summary>
    /// 通知基础类
    /// </summary>
    public class hn_notify_base {
        /// <summary>
        /// 数据格式，固定值：json
        /// </summary>
        public string dataType { get; set; }
        /// <summary>
        /// 请求内容数据
        /// </summary>
        public string requestData { get; set; }
        /// <summary>
        /// 订阅类型
        /// </summary>
        public string requestType { get; set; }
        /// <summary>
        /// 签名
        /// </summary>
        public string dataSign { get; set; }
    }
    /// <summary>
    /// 商品推送接口
    /// </summary>
    public class hn_goods_notify {
        /// <summary>
        /// 商户ID
        /// </summary>
        public string clientId { get; set; }
        /// <summary>
        /// 推送时间
        /// </summary>
        public string pushTime { get; set; }
        /// <summary>
        /// 推送内容
        /// </summary>
        public object data { get; set; }
    }
    /// <summary>
    /// 订单发货推送接口
    /// </summary>
    public class hn_order_express_notify {
        /// <summary>
        /// 订单号
        /// </summary>
        public string orderNo { get; set; }
        /// <summary>
        /// 物流编号
        /// </summary>
        public string expressCode { get; set; }
        /// <summary>
        /// 物流公司
        /// </summary>
        public string expressName { get; set; }
        /// <summary>
        /// 物流单号
        /// </summary>
        public string expressNo { get; set; }
        /// <summary>
        /// 物流推送时间
        /// </summary>
        public string deliveryTime { get; set; }
    }
    /// <summary>
    /// 商品新增、编辑、库存变更通知
    /// </summary>
    public class hn_goods_op_notify {
        /// <summary>
        /// 商品名称
        /// </summary>
        public string goodsName { get; set; }
        /// <summary>
        /// 商品sku
        /// </summary>
        public string goodsSku { get; set; }
    }
    /// <summary>
    /// 商品价格变更
    /// </summary>
    public class hn_goods_price_notify {
        /// <summary>
        /// 商品sku
        /// </summary>
        public string goodsSku { get; set; }
        /// <summary>
        /// 商品名称
        /// </summary>
        public string goodsName { get; set; }
    }
    /// <summary>
    /// 商品规格信息
    /// </summary>
    public class hn_goods_specs {
        /// <summary>
        /// 规格组名
        /// </summary>
        public string specGroupName { get; set; }
        /// <summary>
        /// 开始时间
        /// </summary>
        public string startExpDate { get; set; }
        /// <summary>
        /// 结束时间
        /// </summary>
        public string endExpDate { get; set; }
        /// <summary>
        /// 库存
        /// </summary>
        public int goodsStock { get; set; }
        /// <summary>
        /// 规格详情
        /// </summary>
        public hn_specs_detail specDetail { get; set; }
    }
    /// <summary>
    /// 规格详情
    /// </summary>
    public class hn_specs_detail {
        /// <summary>
        /// 规格名称
        /// </summary>
        public string specName { get; set; }
        /// <summary>
        /// 价格
        /// </summary>
        public string specPrice { get; set; }
        /// <summary>
        /// 规格数量
        /// </summary>
        public int specNum { get; set; }
    }
    /// <summary>
    /// 商品上架下架
    /// </summary>
    public class hn_goods_op {
        /// <summary>
        /// 商品名称
        /// </summary>
        public string goodsName { get; set; }
        /// <summary>
        /// 商品规格
        /// </summary>
        public string goodsSku { get; set; }
    }
    #endregion

    #region 商品分类
    /// <summary>
    /// 商品分类
    /// </summary>
    public class hniao_category_req: hn_req_base {
        /// <summary>
        /// 
        /// </summary>
        public hniao_category_req() {
            method = "base.getCategory";
        }
    }
    /// <summary>
    /// 获取快递公司编码
    /// </summary>
    public class hniao_get_express : hn_req_base {
        /// <summary>
        /// 
        /// </summary>
        public hniao_get_express() {
            method = "base.getExpress";
        }
    }
    /// <summary>
    /// 商品分类响应
    /// </summary>
    public class hniao_category_res : hn_res_base {
        /// <summary>
        /// 
        /// </summary>
        public hniao_category_res() {
            data = new List<hn_express>();
        }
        /// <summary>
        /// 
        /// </summary>
        public List<hn_express> data { get; set; }
    }
    /// <summary>
    /// 分类数据
    /// </summary>
    public class hn_express {
        /// <summary>
        /// 
        /// </summary>
        public hn_express() {
            children = new List<hn_children>();
        }
        /// <summary>
        /// 分类id
        /// </summary>
        public string catId { get; set; }
        /// <summary>
        /// 上级分类id
        /// </summary>
        public string parentId { get; set; }
        /// <summary>
        /// 分类名称
        /// </summary>
        public string catName { get; set; }
        /// <summary>
        /// 子类
        /// </summary>
        public List<hn_children> children { get; set; }
    }
    /// <summary>
    /// 子类信息
    /// </summary>
    public class hn_children {
        /// <summary>
        /// 
        /// </summary>
        public hn_children() {
            children = new List<hn_children>();
        }
        /// <summary>
        /// 分类id
        /// </summary>
        public string catId { get; set; }
        /// <summary>
        /// 上级分类id
        /// </summary>
        public string parentId { get; set; }
        /// <summary>
        /// 分类名称
        /// </summary>
        public string catName { get; set; }
        /// <summary>
        /// 子类集合
        /// </summary>
        public List<hn_children> children { get; set; }
    }
    /// <summary>
    /// 请求分类商品列表
    /// </summary>
    public class hn_category_goods_req : hn_req_base {
        /// <summary>
        /// 初始化
        /// </summary>
        public hn_category_goods_req() {
            method = "goods.getGoodsListByCategoryId";
            page = 1;
        }
        /// <summary>
        /// 页码
        /// </summary>
        public int page { get; set; }
        /// <summary>
        /// 分类id
        /// </summary>
        public string categoryId { get; set; }
    }
    /// <summary>
    /// 响应分类商品列表
    /// </summary>
    public class hn_category_goods_res : hn_res_base {
        /// <summary>
        /// 
        /// </summary>
        public hn_category_goods data { get; set; }
    }
    /// <summary>
    /// 
    /// </summary>
    public class hn_category_goods {
        /// <summary>
        /// 总数
        /// </summary>
        public int total { get; set; }
        /// <summary>
        /// 商品列表数据
        /// </summary>
        public List<hn_category_goodsList_res> goodsList { get; set; }
    }
    /// <summary>
    /// 
    /// </summary>
    public class hn_category_goodsList_res {
        public string sku { get; set; }
        public string tradeType { get; set; }
        public string barcode { get; set; }
        public string goodsName { get; set; }
        public string tiny { get; set; }
        public string thumbnail { get; set; }
        public string big { get; set; }
        public string original { get; set; }
        public string origin { get; set; }
        public string description { get; set; }
        public string brand { get; set; }
        public string goodsUnit { get; set; }
        public List<string> category { get; set; }
        public object spec { get; set; }
        public string piLibUrl { get; set; }
    }
    #endregion

    #region 商品库存
    /// <summary>
    /// 请求商品库存
    /// </summary>
    public class hn_product_stock_req : hn_req_base {
        /// <summary>
        /// 
        /// </summary>
        public hn_product_stock_req() {
            method = "goods.getStock";
        }
        /// <summary>
        /// 商品sku
        /// </summary>
        public string goodsSku { get; set; }
    }
    /// <summary>
    /// 响应商品库存
    /// </summary>
    public class hn_product_stock_res : hn_res_base {
        /// <summary>
        /// 
        /// </summary>
        public hn_product_stock_res() {
            data = new List<hn_stock_spec>();
        }
        public List<hn_stock_spec> data { get; set; }
    }

    public class hn_stock_spec {
        public string specGroupName { get; set; }
        public string startExpDate { get; set; }
        public string endExpDate { get; set; }
        public int stockNum { get; set; }
    }

    #endregion
}
